package com.fanyouzhao.eshop.portal.service;

import com.fanyouzhao.eshop.core.pojo.Goods;
import com.fanyouzhao.eshop.core.pojo.User;
import com.fanyouzhao.eshop.core.service.BaseService;
import com.fanyouzhao.eshop.core.utils.JsonResult;
import com.fanyouzhao.eshop.portal.exception.BusinessException;

/**
 * @author: fanyouzhao
 * @date: 15:45 2021/7/2
 */
public interface GoodsService extends BaseService<Goods> {

    Goods queryGoodsByCacheId(Long id) throws BusinessException;

    Boolean seckill(Long goodsId, Integer userId) throws BusinessException;

    Boolean goodsRefreshById(Long id) throws BusinessException;
}
